import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("sys_user_role",{schema:"nest-mall" } )
export class SysUserRole {

    @PrimaryGeneratedColumn({
        type:"bigint", 
        name:"id"
        })
    id:string;
        

    @Column("bigint",{ 
        nullable:true,
        name:"user_id"
        })
    userId:string | null;
        

    @Column("bigint",{ 
        nullable:true,
        name:"role_id"
        })
    roleId:string | null;
        
}
